<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>组名：</label>
				<input type="text" name="name" />
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a width="800" height="480" class="add" mask="true" target="dialog" href="/Admin/index.php/Expand/Authorityadd/"><span>新增</span></a></li>
			<li><a width="800" height="480" class="edit" href="/Admin/index.php/Expand/Authorityed/id/{sid_role}" target="dialog" mask="true" warn="请选择栏目！"><span>编辑</span></a></li>
			<li><a class="delete" href="/Admin/index.php/Expand/Authoritydel/id/{sid_role}/navTabId/ck8" target="ajaxTodo" title="你确定要删除吗？" warn="请选择栏目！"><span>删除</span></a></li>
			<li><a width="800" height="480" class="add" href="/Admin/index.php/Expand/Authorityadd/parent/{sid_role}" target="dialog" mask="true"><span>新增子权限</span></a></li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
			<th align='center' width="5%">排序</th>
            <th align='center' width="2%">catid</th>
            <th align='left' width="20%">栏目名称</th>
            <th align="left" width='15%'>栏目类型</th>
            <th align='center' width="10%">标示</th>
            <th align='center' width="10%">添加时间</th>
            <th align='center' width="8%">添加ip</th>
            <th align='center' width="5%">跳转地址</th>
            <th align='center' width="5%">状态</th>
			<th align='center' width="20%">管理操作</th>
		</tr>
		</thead>
<tbody>
<volist name="power" id='vpra'>
   	<tr target="sid_role" rel="{$vpra.id}">
		<td align='center'><input name='listorders[{$vpra.id}]' type='text' size='3' value='{$vpra.sort}' class='input-text-c'></td>
		<td align='center'>{$vpra.id}</td>
		<td align="left">+<font color="#FF0000"> {$vpra.name}</font></td>
		<td align="left">+<font color="blue">顶级栏目</font></td>
		<td align='center'>{$vpra.code}</td>
		<td align='center'>{$vpra.input_time|date="Y-m-d",###}</td>
		<td align='center'>{$vpra.input_ip}</td>
		<td align='center'>{$vpra.url}</td>
		<td align='center'><if condition="$vpra.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
		<td align='center'><a href="/Admin/index.php/Expand/Authorityadd/parent/{$vpra.id}">添加子权限</a> | 
		<a href="javascript:void(0)" onclick="show('light','{$vpra.id}')">查看</a> | 
		<a href="/Admin/index.php/Expand/Authorityed/id/{$vpra.id}">修改</a> | 
		<a href="javascript:confirmurl('/Admin/index.php/Expand/Authoritydel/id/{$vpra.id}','确认要删除 『 {$vpra.name}』 吗？警告权限设置的删除将影响整个系统！删除时请注意删除子权限')">删除</a> | </td>
	</tr>

		<volist name="vpra['parent']" id='vprb'>
			<tr target="sid_role" rel="{$vprb.id}">
				<td align='center'><input name='listorders[{$vprb.id}]' type='text' size='3' value='{$vprb.sort}' class='input-text-c'></td>
				<td align='center'> {$vprb.id}</td>
				<td align="left">&nbsp;&nbsp;&nbsp;├─<font color="#FF99FF"> {$vprb.name}</font></td>
				<td align="left">+<font color="blue">{$vprb.names}</font></td>
				<td align='center'>{$vprb.code}</td>
				<td align='center'>{$vprb.input_time|date="Y-m-d",###}</td>
				<td align='center'>{$vprb.input_ip}</td>
				<td align='center'>{$vprb.url}</td>
				<td align='center'><if condition="$vprb.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
				<td align='center'><a href="/Admin/index.php/Expand/Authorityadd/parent/{$vprb.id}">添加子权限</a> | 
				<a href="/Admin/index.php/Expand/Authorityed/id/{$vprb.id}">修改</a> | 
				<a href="javascript:confirmurl('/Admin/index.php/Expand/Authoritydel/id/{$vprb.id}','确认要删除 『 {$vprb.name}』 吗？警告权限设置的删除将影响整个系统！删除时请注意删除子权限')">删除</a> | </td>	
			</tr>			
		<volist name="vprb['parent']" id='vprc'>
			<tr target="sid_role" rel="{$vprc.id}">
				<td align='center'><input name='listorders[{$vprc.id}]' type='text' size='3' value='{$vprc.sort}' class='input-text-c'></td>
				<td align='center'>{$vprc.id}</td>
				<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─ <a href="javascript:void(0)" onclick="show('light','{$vprc.id}')">{$vprc.name}</a></td>
				<td align="left">+<font color="blue">{$vprc.names} -{$vprc.namess}</font></td>
				<td align='center'>{$vprc.code}</td>
				<td align='center'>{$vprc.input_time|date="Y-m-d",###}</td>
				<td align='center'>{$vprc.input_ip}</td>
				<td align='center'>{$vprc.url}</td>
				<td align='center'><if condition="$vprc.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
				<td align='center'><a href="javascript:void(0)" onclick="show('light','{$vprc.id}')">查看</a> |
				<a href="/Admin/index.php/Expand/Authorityed/id/{$vprc.id}">修改</a> |
				<a href="javascript:confirmurl('/Admin/index.php/Expand/Authoritydel/id/{$vprc.id}','确认要删除 『 {$vpra.name}』 吗？警告权限设置的删除将影响整个系统！')">删除</a> | </td>
			</tr>
		</volist>
		</volist>
	</volist>
</tbody>
</table>
</div>


